<?php

include_once($_SERVER['DOCUMENT_ROOT'].'/admin/public/header.php'); 

pub($config);
$sql='select * from category';
// var_dump($sql);die;
$res_cate=mysql_query($sql);
?>


        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="/admin/article/index.php">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="/jscss/admin/design/">文章管理</a><span class="crumb-step">&gt;</span><span>新增作品</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="/admin/article/addy.php" method="post" id="myform" name="myform" enctype="multipart/form-data">
                    <table class="insert-tab" width="100%">
                        <tbody><tr>
                        <th width="120">选择分类:</th>
                            <td>
                                 <select name="cid" id="cid">
                                <?php while ($row=mysql_fetch_assoc($res_cate)) {
                                    echo '<option value="'.$row['id'].'">'.$row['name'].'</option>';
                                } ?>
                            </td>
                          
                        </tr>
                          <tr>
                                <th><i class="require-red">*</i>作者：</th>
                                <td>
                                    <input class="common-text required" id="uid" name="uid" size="50" value="" type="text">
                                </td>
                            </tr>
                        <tr>
                                <th><i class="require-red">*</i>缩略图：</th>
                                <td><input name="pic" id="pic" type="file"><!--<input type="submit" onclick="submitForm('/jscss/admin/design/upload')" value="上传图片"/>--></td>
                            </tr>

                        <tr>
                                <th><i class="require-red">*</i>标题：</th>
                                <td>
                                    <input class="common-text required" id="title" name="title" size="50" value="" type="text">
                                </td>
                            </tr>

                          
                           
                            
                            <tr>
                                <th>内容：</th>
                                <td><script id="editor" type="text/plain" style="width:1024px;height:500px;" name="content"></script>
                                <script type="text/javascript">
                                 var ue = UE.getEditor('editor');
                                 </script>
                                </td>
                            </tr>
                             
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>